package cn.stylefeng.guns.modular.school.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;

import java.io.Serializable;

/**
 * <p>
 * 停车位信息
 * </p>
 *
 * @author
 * @since 2020-04-15
 */
@Data
@TableName("thesis_parking_place_info")
public class ParkingPlaceInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "seq_id", type = IdType.AUTO)
    private Integer seqId;

    /**
     * 车库id
     */
    @TableField("parking_id")
    private Integer parkingId;

    /**
     * 允许使用时间开始
     */
    @TableField("time_start")
    private Date timeStart;

    /**
     * 允许使用时间结束
     */
    @TableField("time_end")
    private Date timeEnd;

    /**
     * 位置
     */
    @TableField("location")
    private String location;
    @TableField("memo")
    private String memo;
    @TableField("price")
    private Integer price;
    @TableField("open_id")
    private String openId;
    /**
     * 0 空闲 1 使用中 2 预定中 3 不可用
     */
    @TableField("status")
    private String status;

    @TableField("car_url")
    private String carUrl;

    public Integer getSeqId() {
        return seqId;
    }

    public void setSeqId(Integer seqId) {
        this.seqId = seqId;
    }

    public Integer getParkingId() {
        return parkingId;
    }

    public void setParkingId(Integer parkingId) {
        this.parkingId = parkingId;
    }

    public Date getTimeStart() {
        return timeStart;
    }

    public void setTimeStart(Date timeStart) {
        this.timeStart = timeStart;
    }

    public Date getTimeEnd() {
        return timeEnd;
    }

    public void setTimeEnd(Date timeEnd) {
        this.timeEnd = timeEnd;
    }

    public String getLocation() {
        return location;
    }

    public void setLocation(String location) {
        this.location = location;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    @Override
    public String toString() {
        return "ParkingPlaceInfo{" +
                "seqId=" + seqId +
                ", parkingId=" + parkingId +
                ", timeStart=" + timeStart +
                ", timeEnd=" + timeEnd +
                ", location=" + location +
                ", status=" + status +
                "}";
    }
}
